public class Count {

	public int add(int src,int des){ 
		int sum = src + des;
		return sum; 
	}
	public static void main(String[] args){ 
		Count count = new Count(); 
		int apple1 = 30; 
		int apple2 = 20; 
		int num=count.add(apple1,apple2); 
		System.out.println("苹果总数是："+num+"箱。"); 
		
	}
}